Factory.sequence :email do |n|
  "email#{n}@test.com"
end

Factory.define :user do |u|
  u.first_name 'Ashraf'
  u.last_name  'Zaman'
  #allows you to create different users with different email using the same definition
  u.email { Factory.next(:email) }
end